Firefox 140 for developers
This article provides information about the changes in Firefox 140 that affect developers. Firefox 140 is the current Beta version of Firefox and ships on June 24, 2025.
Changes for web developers
Developer Tools
HTML
Removals
CSS
Removals
JavaScript
Removals
SVG
Removals
HTTP
Removals
Security
Removals
APIs
-
The Cookie Store API is now supported (Firefox bug 1958875).
This provides a modern, asynchronous
Promise
-based method of managing cookies, which can be used in both the main thread and in service workers. The API is supported with the exception that cookie objects returned by theget()
andgetAll()
methods of theCookieStore
interface, and in thechange
event, omit all properties other thanname
andvalue
(matching the information returned by thedocument.cookie
). The other cookie properties can still be set, and these will be used internally.
Escape < and > in attributes when serializing HTML
Element.innerHTML
,Element.outerHTML
,Element.getHTML()
,ShadowRoot.innerHTML
, andShadowRoot.getHTML()
now replace the<
and>
characters with<
and>
(respectively) when serializing the HTML to a string. This prevents certain exploits where HTML is serialized and then injected back into the DOM. (Firefox bug 1962084).
DOM
Media, WebRTC, and Web Audio
Removals
WebAssembly
Removals
WebDriver conformance (WebDriver BiDi, Marionette)
General
WebDriver BiDi
Marionette
Changes for add-on developers
- Support added for
unspecified
incookies.SameSiteStatus
. In addition,unspecified
is now the default value forsameSite
incookies.set()
. (Firefox bug 1550032)
Removals
Other
Experimental web features
These features are shipping in Firefox 140 but are disabled by default. To experiment with them, search for the appropriate preference on the about:config
page and set it to true
. You can find more such features on the Experimental features page.
-
Notification.maxActions
(Nightly):dom.webnotifications.actions.enabled
The
Notification.maxActions
read-only static property returns the browser limit on the number of actions that can be associated with aNotification
, which you create usingServiceWorkerRegistration.showNotification()
. This was released prematurely in Firefox version 138, and this change makes it available only in the Nightly build. (Firefox bug 1963263). -
closedBy
attribute for<dialog>
(Nightly):dom.dialog.light-dismiss.enabled
The
closedBy
attribute of theHTMLDialogElement
interface, and correspondingclosedby
attribute of the<dialog>
element, are supported. Developers can use these to specify what mechanisms are able to close the dialogs, such as user interaction outside the dialog ("light dismiss") or programmatic closing. (Firefox bug 1964077). -
Atomics.waitAsync()
:javascript.options.atomics_wait_async
The
Atomics.waitAsync()
static method waits asynchronously on a shared memory location and returns an object representing the result of the operation. It is non-blocking and usable on the main thread. (Firefox bug 1467846). -
Prioritized Task Scheduling API (Nightly release). The Prioritized Task Scheduling API provides a standardized way to prioritize all tasks belonging to an application, whether they are defined in a website developer's code, or in third-party libraries and frameworks. This adds support for the
TaskSignal.any()
static method, which returns a signal that is triggered when any of theTaskSignal
objects it is created from are triggered. The API is now feature complete. (Firefox bug 1964407).
Older versions
- Firefox 139 for developers
- Firefox 138 for developers
- Firefox 137 for developers
- Firefox 136 for developers
- Firefox 135 for developers
- Firefox 134 for developers
- Firefox 133 for developers
- Firefox 132 for developers
- Firefox 131 for developers
- Firefox 130 for developers
- Firefox 129 for developers
- Firefox 128 for developers
- Firefox 127 for developers
- Firefox 126 for developers
- Firefox 125 for developers
- Firefox 124 for developers
- Firefox 123 for developers
- Firefox 122 for developers
- Firefox 121 for developers
- Firefox 120 for developers
- Firefox 119 for developers
- Firefox 118 for developers
- Firefox 117 for developers
- Firefox 116 for developers
- Firefox 115 for developers
- Firefox 114 for developers
- Firefox 113 for developers
- Firefox 112 for developers
- Firefox 111 for developers
- Firefox 110 for developers
- Firefox 109 for developers